package com.datasure.cloudsure.redis.annotation;

import com.datasure.cloudsure.redis.config.DynamicRedisConfig;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;

/**
 * 启动动态数据源注解
 * 可以用在SpringApplication类上
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import(DynamicRedisConfig.class)
@Documented
public @interface EnableDynamicRedis {
}